import sys
import inspect

class_name_to_find = 'PaddleNLPEmbeddings'
print(sys.modules.items())

for name, module in sys.modules.items():
    if inspect.ismodule(module) and hasattr(module, class_name_to_find):
        print(f"类 {class_name_to_find} 在模块 {name} 中找到。")
        break
else:
    print(f"类 {class_name_to_find} 在全局范围内未找到。")